package com.huike.service.impl;

import com.huike.domain.common.TreeDeptAndUser;
import com.huike.domain.common.TreeSelect;
import com.huike.mapper.SysDeptMapper;
import com.huike.mapper.SysRoleMapper;
import com.huike.service.ISysDeptService;
import com.huike.common.annotation.DataScope;
import com.huike.common.constant.UserConstants;
import com.huike.domain.system.SysDept;
import com.huike.domain.system.SysRole;
import com.huike.common.exception.CustomException;
import com.huike.utils.StringUtils;
import com.huike.web.CurrentUserHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 部门管理 服务实现
 */
@Service
public class SysDeptServiceImpl implements ISysDeptService {
    @Autowired
    private SysDeptMapper deptMapper;

    @Autowired
    private SysRoleMapper roleMapper;

    /**
     * 查询部门管理数据
     *
     * @param dept 部门信息
     * @return 部门信息集合
     */
    @Override
    @DataScope(deptAlias = "d")
    public List<SysDept> selectDeptList(SysDept dept) {
        return null;
    }
}
